package org.edu.modules.salary.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.edu.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("ve_hr_gangwei")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "岗位表", description = "岗位表")
public class VeHrGangwei implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID，自动增长
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键ID，自动增长")
    private String id;
    /**
     * 岗位名称
     */
    @Excel(name = "岗位名称", width = 15)
    @ApiModelProperty(value = "岗位名称")
    private String title;
    /**
     * 岗位
     */
    @Excel(name = "岗位", width = 15)
    @ApiModelProperty(value = "岗位")
    private String code;
    /**
     * 部门
     */
    @Excel(name = "部门", width = 15, dicCode = "id", dicText = "JGMC", dictTable = "ve_base_department")
    @ApiModelProperty(value = "部门")
    @Dict(dicCode = "id", dicText = "JGMC", dictTable = "ve_base_department")
    private Integer depid;
    /**
     * 操作人id
     */
//    @Excel(name = "操作人id", width = 15)
    @ApiModelProperty(value = "操作人id")
    private String createuserid;
    /**
     * 操作人姓名
     */
    @Excel(name = "操作人姓名", width = 15)
    @ApiModelProperty(value = "操作人姓名")
    private String createusername;
    /**
     * 系统id
     */
//    @Excel(name = "系统id", width = 15)
    @ApiModelProperty(value = "系统id")
    private Integer terminalid;
    /**
     * createTime
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "createTime")
    private Date createTime;
}
